package VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.SWINGDEMO.Controller;

import java.sql.Connection;
import java.sql.SQLException;

import VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.SWINGDEMO.User;
import VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.SWINGDEMO.Models.LoginModels;

public class LoginController {
private LoginModels m_objModels;
public LoginController(Connection objConnection){
m_objModels = new LoginModels(objConnection);
}

public boolean CheckUser(User objUser){
	boolean bResult = false;
try{
	bResult= m_objModels.CheckElement(objUser);
} catch(SQLException e){
	e.printStackTrace();
}
return bResult;
}
}
